package com.house.java.dao;

import java.util.List;

import com.house.java.model.NewHouse;
import com.house.java.model.Paging;

public interface NewHouseDAO {

	/**
	 * 根据查询调价查询出房子的信息
	 * 
	 * 1、根据价格区间进行查询:
	 * 如果minPrice == null maxPrice != null 则为 maxPrice以下查询
	 * 如果minPrice != null maxPrice == null 则为 minPrice以上查询
	 * 如果minPrice != null maxPrice != null 则为 minPrice <= price  <= maxPrice 以上查询
	 * 如果minPrice == null maxPrice == null 则为 不按照价格条件进行查询
	 * 
	 */
	public List<NewHouse> queryNewHouseByCondition(Integer maxPrice,Integer minPrice,Paging paging,
			Integer wuyeCategory,Integer locationCountryCode,Integer locationProvinceCode,
			Integer locationCityCode,Integer locationDistrict,Long id);
	
	/**
	 * 插入新楼盘信息
	 * @param house
	 * @return
	 */
	public void insertNewHouse(NewHouse house);
	
	public List<NewHouse> queryNewHouseByCondition(Long id);
	
	public int deleteNewHouse(Long id);
}
